package com.fastloan.jn.mgt.process.controller;

import com.fastloan.jn.mgt.process.model.JnAppApproveLog;
import com.kawins.base.baseabs.BaseController;
import com.kawins.result.ResultTo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 审批记录
 * Created by chenkai on 2017/3/9.n
 */
@RestController
@RequestMapping("/api/web/applicationApproveLog")
public class ApplicationApproveLogController extends BaseController<JnAppApproveLog> {

    /**
     * 查询审批记录
     *
     * @param applicationId 进件id
     * @return 审批信息
     */
    @RequestMapping("/pageList/{applicationId}")
    public ResultTo pageList(@PathVariable("applicationId") int applicationId) {
        Map<String, Object> map = new HashMap<>();
        map.put("applicationId", applicationId);
        return dataPage("queryApprovalLog", map);
    }
}
